import Vue from 'vue'
import App from './App.vue'
import '@/assets/base.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import 'font-awesome/css/font-awesome.min.css'
import api from '@/api'
import router from '@/router'
import {Message} from 'element-ui'
import 'default-passive-events'
import TreeTable from 'vue-table-with-tree-grid'
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css' // import styles
import 'quill/dist/quill.snow.css' // for snow theme
import 'quill/dist/quill.bubble.css' // for bubble theme
import Vant from 'vant';
import 'vant/lib/index.css';
import  '@/assets/js/eventBus'
import VueCookies from "vue-cookies";
Vue.use(VueCookies);
Vue.use(Vant);
Vue.use(VueQuillEditor/* { default global options } */)
Vue.prototype.$api=api
Vue.config.productionTip = false
Vue.prototype.$message=Message
Vue.use(ElementUI);
Vue.component('el-input', {
  extends: ElementUI .Input,
  created() {
    this.$on('change', (value) => {
      this.$emit('input', value.trim())
    })
  }
})
Vue.filter('dateFormat',(originVal)=>{
  return originVal.toLocaleString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '')
})
Vue.component('tree-table',TreeTable)
new Vue({
  render: h => h(App),
  router
}).$mount('#app')
